package com.cj.bigfileupload.common.enums;

/**
 * ClassName: FileUploadStatusEnum <br/>
 * Function: 文件上传状态 <br/>
 * date: 2018/05/08 15:33 <br/>
 *
 * @author chenj
 * @version 1.0.0
 * @since JDK 1.8
 */
public enum FileUploadStatusEnum {

    IS_HAVE(100, "文件已存在"),

    NO_HAVE(101, "该文件没有上传过"),

    ING_HAVE(102, "该文件上传了一部分");

    private final int status;

    private final String message;

    FileUploadStatusEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
